package com.ktgj.pay.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 发票核验对象 invoice_checking
 * 
 * @author ruoyi
 * @date 2022-01-24
 */
public class InvoiceChecking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 原发票ID */
    @Excel(name = "原发票ID")
    private Long oldinvoiceid;

    /** 新发票ID */
    @Excel(name = "新发票ID")
    private Long newinvoiceid;

    /** 审核类型(1收款, 2收回, 3冲红, 4换开) */
    @Excel(name = "审核类型(1收款, 2收回, 3冲红, 4换开)")
    private Long checktype;

    /** 审核状态(1未审核，2审核通过, 3审核失败) */
    @Excel(name = "审核状态(1未审核，2审核通过, 3审核失败)")
    private Long checkstate;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applicantid;

    /** 申请理由 */
    @Excel(name = "申请理由")
    private String reason;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private String operator;

    /** 失败原因 */
    @Excel(name = "失败原因")
    private String rejectreason;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatetime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOldinvoiceid(Long oldinvoiceid) 
    {
        this.oldinvoiceid = oldinvoiceid;
    }

    public Long getOldinvoiceid() 
    {
        return oldinvoiceid;
    }
    public void setNewinvoiceid(Long newinvoiceid) 
    {
        this.newinvoiceid = newinvoiceid;
    }

    public Long getNewinvoiceid() 
    {
        return newinvoiceid;
    }
    public void setChecktype(Long checktype) 
    {
        this.checktype = checktype;
    }

    public Long getChecktype() 
    {
        return checktype;
    }
    public void setCheckstate(Long checkstate) 
    {
        this.checkstate = checkstate;
    }

    public Long getCheckstate() 
    {
        return checkstate;
    }
    public void setApplicantid(String applicantid) 
    {
        this.applicantid = applicantid;
    }

    public String getApplicantid() 
    {
        return applicantid;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setRejectreason(String rejectreason) 
    {
        this.rejectreason = rejectreason;
    }

    public String getRejectreason() 
    {
        return rejectreason;
    }
    public void setOperatetime(Date operatetime) 
    {
        this.operatetime = operatetime;
    }

    public Date getOperatetime() 
    {
        return operatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("oldinvoiceid", getOldinvoiceid())
            .append("newinvoiceid", getNewinvoiceid())
            .append("checktype", getChecktype())
            .append("checkstate", getCheckstate())
            .append("applicantid", getApplicantid())
            .append("reason", getReason())
            .append("createTime", getCreateTime())
            .append("operator", getOperator())
            .append("rejectreason", getRejectreason())
            .append("operatetime", getOperatetime())
            .toString();
    }
}
